<template>
    <van-form @submit="onSubmit">
        <van-cell-group inset>
            <van-field
                    v-model="password"
                    type="password"
                    name="password"
                    label="队伍密码"
                    placeholder="请输入队伍密码"
                    :rules="[{ required: true, message: '请填写队伍密码' }]"
            />
        </van-cell-group>
        <div style="margin: 16px;">
            <van-button round block type="primary" native-type="submit">
                提交
            </van-button>
        </div>
    </van-form>
</template>

<script setup lang="ts">
    import {useRouter} from 'vue-router'
    import TeamCardList from '../components/TeamCardList.vue'
    import {onMounted,ref} from "vue";
    import myAxois from "../plugin/MyAxios";
    import {showFailToast, showSuccessToast} from "vant";
    import {defineProps} from 'vue'
    import {User} from "../models/user";

    const router = useRouter();
    const password = ref('');
    interface TeamCardListProps {
        id:number;
    }



    const props = defineProps<TeamCardListProps>();



</script>

<style scoped>

</style>